<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 有效时间的数目 -->
    <script>
      var countTime = function (time) {
        let a = 1
        let b = 1
        if (time[0] == '?' && time[1] == '?') a = 24
        else if (time[0] == '?') a = time[1] > 3 ? 2 : 3
        else if (time[1] == '?') a = time[0] == '2' ? 4 : 10
        if (time[3] == '?') b = 6
        if (time[4] == '?') b = time[3] == '?' ? 60 : 10
        return a * b
      }
      console.log(countTime('?5:00'))
    </script>
  </body>
</html>
